<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="masterlink.bean.OrdersBean"%>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%
	List<OrdersBean> list = (List<OrdersBean>)request.getAttribute("list");
	if(list==null){
		return;
	}
	String a="";
	for(OrdersBean ob :list){
		String stockId=ob.getStock_id();
		int time1 = ob.getTime1();
		int time2 = ob.getTime2();
		int dprice = ob.getDprice();
		int bsum = ob.getBsum();
		int ssum = ob.getSsum();
		int avg = ob.getAvg();
		int tag = ob.getTag();
		int weight = ob.getWeight();
		a=a+"{\"stockId\":\""+stockId+"\","+
			"\"time1\":\""+time1+"\","+
			"\"time2\":\""+time2+"\","+
			"\"dprice\":\""+dprice+"\","+
			"\"bsum\":\""+bsum+"\","+
			"\"ssum\":\""+ssum+"\","+
			"\"avg\":\""+avg+"\","+
			"\"weight\":\""+weight+"\","+
			"\"tag\":\""+tag+"\"},";
	}
	out.clear();
	if(a.length()> 0){
		out.println("["+a.substring(0,a.length()-1)+"]");
	}else{
		out.println("[]");
	}
%>